﻿using DAQ.Common;

namespace DAQ.PROTOCOL
{
    public class TENSION_OFFSET_PROCEDURE
    {
        public static byte[] GetSendBytes(byte Addr)
        {
            return BasicUtil.AppendChecksum(Addr, 0x04);
        }
        public static int GetResult(byte ret)
        {
            if (ret == 0xFB)// communication OK
            {
                return 0;
            }

            else if (ret == 0xFA)//communication FAIL
            {
                return 1;
            }
            else //EXCEPTION
            {
                return -1;
            }
        }
    }
}
    

    


